package com.job.Gai_Yian.Homework0705;

/**
 * @author Gai_Yian
 * @version 1.0
 * @since 2022-07-06 23:56:18
 */
public class Student {
//    成员变量
    public class stu{
        String name;
        int grade;
        int point;
        int Chinese;
        int Math;
        int English;

//    成员方法
    public void exam(int point){
        if (point>=60){
            System.out.println("及格");
        }else if (point>=40&&point<60){
            System.out.println("不及格，补考");
        }else{
            System.out.println("不及格，重修");
        }
    }

//    有参
        public stu(String name, int grade, int point) {
            this.name = name;
            this.grade = grade;
            this.point = point;
        }

//    无参
        public void text(){
            System.out.println();
        }
    }
}
